<?php
session_start();
if($_SESSION['login'] != 'd'){
  echo '<script>alert("非法登录");window.location.href="login.html";</script>'; 
}
?>